/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package conf.mybatis.mappers;

/**
 *
 * @author dell
 */
import org.apache.ibatis.annotations.Param;
import entity.structure.Device;
import java.util.List;
public interface device extends Dao
{
@Override    
/**
 * select all rows from table device 
 * @return 
 * @pass
 */    
public List<Device> selects();    
@Override
/**
 * select all rows from table device and filtered by query
 * @param query
 * @return 
 * @pass
 */    
public List<Device> selectsByQuery(@Param("query") String query);
/**
 * 
 * @param start
 * @param end
 * @return 
 */
public List<Device> selectsInRange(@Param("start")int start,@Param("len") int len);
/**
 * @param orderby
 * @param start
 * @param len
 * @return 
 */
public List<Device> selectsOrderByInRange(@Param("orderby") String orderby,@Param("start") int start,@Param("len") int len);
@Override
/**
 * @param id
 * @return
 * @pass
 */
public Device selectById(@Param("id") int id);
@Override
/**
 * @param name
 * @return
 * @pass
 */
public Device selectByName(@Param("name") String name);
/**
 * @param value
 * @return
 * @pass
 */
public Device selectDetail(@Param("value") Device value);
/**
 * select all element from device and device_detail
 * @return 
 * @pass
 */
public List<Device> selectsAll();
/**
 * select all element from device and device_detail filtered by query
 * @param query
 * @return 
 * @pass
 */
public List<Device> selectsAllByQuery(@Param("query") String query);
/**
 * @param start
 * @param end
 * @return 
 * @pass
 */
public List<Device> selectsAllInRange(@Param("start") int start,@Param("len") int end);
/**
 * @param orderby
 * @param start
 * @param len
 * @return 
 * @pass
 */
public List<Device> selectsAllOrderByInRange(@Param("orderby") String orderby,@Param("start") int start,@Param("len") int len);
@Override
/**
 * @param id
 * @return
 * @pass
 */
public Device selectAllById(@Param("id") int id);
@Override
/**
 * @param name
 * @return
 * @pass
 */
public Device selectAllByName(@Param("name") String name);
/**
 * @param value
 * @return 
 * @pass
 */
public int insert(@Param("value") Device value);
/**
 * @param value
 * @return 
 */
public int insertDetail(@Param("value") Device value);
/**
 * @param value
 * @return 
 */
public int update(@Param("value") Device value);
/**
 * @param value
 * @return 
 */
public int updateDetail(@Param("value") Device value);
}
